

//
//  TabBarModel.m
//  NeiHanDemo
//
//  Created by qianfeng on 16/2/19.
//  Copyright © 2016年 王卓越. All rights reserved.
//

#import "TabBarModel.h"

@implementation TabBarModel

- (id)initWithTitle:(NSString *)title normalImage:(NSString *)normal highLightImage:(NSString *)highLight vcClass:(NSString *)className{
    if (self = [super init]) {
        self.title              = title;
        self.normalImageName    = normal;
        self.highLightImageName = highLight;
        self.viewControllerName = className;
    }
    return self;
}

- (UIImage *)normalImage{
    UIImage *normalImage = [UIImage imageNamed:self.normalImageName];
    //设置图片的渲染模式 UIImageRenderingModeAlwaysOriginal -》原图输出
    return [normalImage imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];

}
- (UIImage *)seletedImage{
    UIImage *highLightImage = [UIImage imageNamed:self.highLightImageName];
    //设置图片的渲染模式 UIImageRenderingModeAlwaysOriginal -》原图输出
    return [highLightImage imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    



}


@end
